package edu.java.lectures.lec13.collections;

import java.util.ArrayList;
import java.util.List;

public class UnreliableList {

    public static void main(String[] args) {
	// List myList = new ArrayList(); // POSSIBLe BUT NOT RELIABLE
	List<String> myList = new ArrayList<String>();

	myList.add("Pencho");
	// myList.add(new Integer(3));

	// for (Object object : myList) {
	// if (object instanceof Integer) {
	// Integer myInt = (Integer) object;
	// System.out.println(myInt);
	// }
	// }

	for (String string : myList) {
	    // do something with the variable string...
	}
    }
}
